package com.cash.channel.svc.service.api;

import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.ContractShowResponse;
import com.cash.channel.api.model.response.LoanCalculateResponse;
import com.cash.channel.api.service.BaseApi;
import com.cash.channel.svc.service.base.ContractShow;
import com.cash.channel.svc.util.ServiceUtils;
import org.springframework.stereotype.Service;

@Service("contractShow")
public class CJH000007 implements BaseApi<ContractShowResponse> {

    @Override
    public ApiResponseModel<ContractShowResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        ContractShow contractShow = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.合同预览, ContractShow.class);
        return contractShow.showContract(apiRequestModel);
    }

}
